<?php  
    require_once('core/modules/backend/controllers/block.php');
    $block = new Block;
?>
<!DOCTYPE html>
<!-- 
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.1.1
Version: 2.0.2
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8"/>
<title>Metronic | Admin Dashboard Template</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<meta content="" name="description"/>
<meta content="" name="author"/>

<base href="<?php echo base_url() ?>" />

<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/>
<link href="public/backend/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="public/backend/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="public/backend/assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN PAGE LEVEL STYLES -->
<link rel="stylesheet" type="text/css" href="public/backend/assets/plugins/select2/select2.css"/>
<link rel="stylesheet" type="text/css" href="public/backend/assets/plugins/select2/select2-metronic.css"/>
<link rel="stylesheet" type="text/css" href="public/backend/assets/plugins/data-tables/DT_bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="public/backend/assets/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css"/>
<link rel="stylesheet" type="text/css" href="public/backend/assets/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css"/>
<!-- END PAGE LEVEL SCRIPTS -->
<!-- BEGIN THEME STYLES -->
<link href="public/backend/assets/css/style-metronic.css" rel="stylesheet" type="text/css"/>
<link href="public/backend/assets/css/style.css" rel="stylesheet" type="text/css"/>
<link href="public/backend/assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
<link href="public/backend/assets/css/plugins.css" rel="stylesheet" type="text/css"/>
<link href="public/backend/assets/css/pages/tasks.css" rel="stylesheet" type="text/css"/>
<link href="public/backend/assets/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color"/>
<link href="public/backend/assets/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="public/backend/assets/css/custom.css" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
<link rel="shortcut icon" href="favicon.ico"/>
<script src="public/backend/assets/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
    <?php echo $block->header(); ?>
<!-- END HEADER -->
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
	<!-- BEGIN SIDEBAR -->
	<div class="page-sidebar-wrapper">
		<div class="page-sidebar navbar-collapse collapse">
			<!-- add "navbar-no-scroll" class to disable the scrolling of the sidebar menu -->
			<!-- BEGIN SIDEBAR MENU -->
			     <?php echo $block->sidebar_menu(); ?>
			<!-- END SIDEBAR MENU -->
		</div>
	</div>
	<!-- END SIDEBAR -->
	<!-- BEGIN CONTENT -->
	<div class="page-content-wrapper">
		<?php echo $content ?>
	</div>
	<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
    <?php echo $block->footer(); ?>
<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
<script src="public/backend/assets/plugins/respond.min.js"></script>
<script src="public/backend/assets/plugins/excanvas.min.js"></script> 
<![endif]-->
















<script>
    var base_url = '<?php echo base_url(); ?>';
    var admin_url = '<?php echo admin_url(); ?>';
</script>

<script src="public/backend/assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="public/backend/assets/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="public/backend/assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="public/backend/assets/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="public/backend/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="public/backend/assets/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="public/backend/assets/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="public/backend/assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script type="text/javascript" src="public/backend/assets/plugins/jquery-validation/dist/jquery.validate.min.js"></script>
<script type="text/javascript" src="public/backend/assets/plugins/jquery-validation/dist/additional-methods.min.js"></script>
<script type="text/javascript" src="public/backend/assets/plugins/select2/select2.min.js"></script>
<script type="text/javascript" src="public/backend/assets/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js"></script>
<script type="text/javascript" src="public/backend/assets/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.js"></script>
<script type="text/javascript" src="public/backend/assets/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script type="text/javascript" src="public/backend/assets/plugins/bootstrap-markdown/lib/markdown.js"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="public/backend/assets/scripts/core/app.js" type="text/javascript"></script>
<script src="public/backend/assets/scripts/custom/index.js" type="text/javascript"></script>
<script src="public/backend/assets/scripts/custom/tasks.js" type="text/javascript"></script>
<script src="public/backend/assets/scripts/custom/form-validation.js"></script>
<script src="public/backend/assets/plugins/data-tables/jquery.dataTables.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->


<script src="public/backend/assets/scripts/custom/form-samples.js"></script>
<script src="public/backend/assets/plugins/data-tables/DT_bootstrap.js"></script>
<script src="public/backend/assets/scripts/custom/custom.js"></script>

<script src="public/scripts/backend/general.js"></script>

<?php 
    $controller = $this->router->fetch_class();
    if(file_exists("public/scripts/backend/custom/$controller.js"))
    {
        echo "<script src='public/scripts/backend/custom/$controller.js'></script>";
    }
?>


<script>
jQuery(document).ready(function() {
   App.init();// initiate layout and plugins
   FormValidation.init();
   FormSamples.init();
   //TableManaged.init();
});
</script>

<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>